﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;

namespace Saisie_des_prélèvements.Common
{
    class msg
    {

        // Global message
        internal string msgComingSoon = (new string[] { "(Not available yet)", "(Pas encore disponible)" })[Language()];
        internal string msgCancel = (new string[] { "Cancel", "Annuler" })[Language()];
        internal string msgNo = (new string[] { "No", "Non" })[Language()];
        internal string msgNoCancel = (new string[] { "Not Cancelled", "Non Annulés" })[Language()];
        internal string msgYes = (new string[] { "Yes", "Oui" })[Language()];
        internal string date_valide = (new string[] { "Date is not valid.", "Date n'est pas valide." })[Language()];
        internal string client_enable = (new string[] { "Are you sure you want to re-enable this sample?", "Etes-vous sur de vouloir ré-activer ce prélèvement?" })[Language()];
        internal string client_cancel = (new string[] { "Are you sure you want to cancel this entry?", "Etes vous sûr de vouloir annuler cette saisie?" })[Language()];
        internal string client_block = (new string[] { "You are not allowed to capture the removal of this product", "Vous n'êtes pas autorisé à saisie le prélèvement de ce produit" })[Language()];
        internal string client_cancelSignature = (new string[] { "Are you sure you want to cancel this signature?", "Etes-vous sûr de vouloir annuler cette signature?" })[Language()];
        internal string login_Initialization = (new string[] { "Initialization parameters and recovery of outstanding contracts{0}{0}Please wait", "Initialisation des paramètres et récupération des contrats en cours{0}{0}Veuillez patienter" })[Language()];
        internal string login_Recovery = (new string[] { "Recovery parameters and new contracts...", "Récupération des paramètres et des nouveaux contrats..." })[Language()];
        internal string login_RecoverySuccess = (new string[] { "Recovery parameters and new contracts.{0}{0}Successful", "Récupération des paramètres et des nouveaux contrats.{0}{0}Réussie" })[Language()];
        internal string login_RecoveryFail = (new string[] { "Recovery parameters and new contracts.{0}{0}Impossible{0}{0}Check the connection of the tablet to the server hosting management software tour", "Récupération des paramètres et des nouveaux contrats.{0}{0}Impossible{0}{0}Vérifier la connexion de la tablette au serveur hébergeant le logiciel de gestion des tournées" })[Language()];
        internal string login_NotCorrectUser = (new string[] { "Username or password is not correct", "Nom d'utilisateur ou mot de passe n'est pas correct" })[Language()];
        internal string login_VertifyTaken = (new string[] { "Verify taken collection {0}/{1}", "Collection vérifier prélèvement {0}/{1}" })[Language()];
        internal string main_export = (new string[] { "Are you sure you want to update CALYPSO?", "Etes-vous sur de vouloir mettre à jour CALYPSO?" })[Language()];
        internal string export_msg = (new string[] { "Update CAPLYSO and import of new contracts. Please wait ...", "Mise à jour de CAPLYSO et importation des nouveaux contrats en cours. Veuillez patienter..." })[Language()];
        internal string export_Success = (new string[] { "Update CAPLYSO and import of new contracts. Successful ...", "Mise à jour de CAPLYSO et importation des nouveaux contrats. Réussie..." })[Language()];
        internal string export_Fail = (new string[] { "Update CAPLYSO and import of new contracts. Impossible, check the connection of the tablet to the server hosting the management software tours.", "Mise à jour de CAPLYSO et importation des nouveaux contrats. Impossible, vérifier la connexion de la tablette au serveur hébergeant le logiciel de gestion des tournées." })[Language()];
        internal string sign_Fail = (new string[] { "Can't save without signature.", "Impossible d'enregistrer sans signature." })[Language()];

        static sbyte Language()
        {

            switch (CultureInfo.CurrentCulture.Name.ToLower())
            {
                case "fr-fr": return 1;
                default: return 0;
            }
        }
    }
}
